<?php 
/* SVN FILE: $Id$ */
/* Tournament Test cases generated on: 2009-04-24 21:04:49 : 1240608709*/
App::import('Model', 'Tournament');

class TournamentTestCase extends CakeTestCase {
	var $Tournament = null;
	var $fixtures = array('app.tournament', 'app.event', 'app.user_tournament');

	function startTest() {
		$this->Tournament =& ClassRegistry::init('Tournament');
	}

	function testTournamentInstance() {
		$this->assertTrue(is_a($this->Tournament, 'Tournament'));
	}

	function testTournamentFind() {
		$this->Tournament->recursive = -1;
		$results = $this->Tournament->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Tournament' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'name'  => 'Lorem ipsum dolor sit amet',
			'type'  => 'L',
			'participants'  => 1,
			'description'  => 'Lorem ipsum dolor sit amet',
			'event_id'  => 'Lorem ipsum dolor sit amet',
			'quote'  => 1,
			'created'  => '2009-04-24 21:31:49',
			'modified'  => '2009-04-24 21:31:49'
		));
		$this->assertEqual($results, $expected);
	}
}
?>